<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import the Joomla modellist library
jimport('joomla.application.component.modellist');
/**
 * CategoryList Model
 */
class ShopModelMethods extends JModelList
{
	/**
	 * Returns a reference to the a Table object, always creating it.
	 *
	 * @param	type	The table type to instantiate
	 * @param	string	A prefix for the table class name. Optional.
	 * @param	array	Configuration array for model. Optional.
	 * @return	JTable	A database object
	 * @since	1.6
	 */
	 protected $item = null;
	public function getTable($type = 'Methods', $prefix = 'ShopTable', $config = array()) 
	{
		return JTable::getInstance($type, $prefix, $config);
	}
	/**
	 * Method to build an SQL query to load the list data.
	 *
	 * @return	string	An SQL query
	 */
	protected function getListQuery()
	{
		$db		= JFactory::getDbo();
		$query	= $db->getQuery(true);
 		$query->select("*");
		$query->from("#__shop_method");
		$query->order("id desc");
		return $query;
	}
	public function getForm($data = array(), $loadData = true) 
	{
		// Get the form.
		return null;
	}

}